﻿<UserControl x:Class="WebFlipScreenSaver.View.WebPageConfigurationView"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:WebFlipScreenSaver="clr-namespace:WebFlipScreenSaver"
             xmlns:Controls="clr-namespace:WebFlipScreenSaver.Controls" mc:Ignorable="d" 
			 d:DesignHeight="302" d:DesignWidth="660">
	<ScrollViewer VerticalScrollBarVisibility="Auto">
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="162*" />
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="Auto" />
				<RowDefinition Height="Auto" />
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			<TextBox Height="28" HorizontalAlignment="Stretch" Margin="5" Name="WebsiteUrlTextBox" 
					 Text="{Binding WebSiteUrl, Mode=TwoWay}"  Grid.Column="1" Grid.ColumnSpan="5" />
			<TextBlock  HorizontalAlignment="Right"  Margin="0,11,5,11"
				   Name="textBlock1" Text="Website URL" VerticalAlignment="Center" Grid.RowSpan="1" />
			<TextBox Height="28" Margin="5" Name="TitleTextBox" 
					 Text="{Binding Title, Mode=TwoWay}"  Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="5" />
			<TextBlock  HorizontalAlignment="Right"  Margin="5"
				   Name="textBlock9" Text="Title" VerticalAlignment="Center" Grid.Row="1" />
			<TextBox Height="28" HorizontalAlignment="Left" Margin="5" Name="DisplayTimeTextBox" Width="100"
					 Text="{Binding DisplayTime, Mode=TwoWay}"  Grid.Column="1" Grid.Row="2" />
			<TextBlock  HorizontalAlignment="Right"  Margin="5"
				   Name="textBlock8" Text="Display time (sec.)" VerticalAlignment="Center" Grid.Row="2" />
			<TextBox Height="28" HorizontalAlignment="Left" Margin="5" Name="ZoomPercentTextBox" Width="100"
					 Text="{Binding ZoomPercent, Mode=TwoWay}"  Grid.Column="3" Grid.Row="2" />
			<TextBlock  HorizontalAlignment="Right"   Grid.Column="2" Margin="5"
				   Name="textBlock10" Text="Zoom %" VerticalAlignment="Center" Grid.Row="2" Grid.ColumnSpan="1" />

			<TextBox Height="28" HorizontalAlignment="Left" Margin="5" Name="RefreshIntervalSecTextBox" Width="100"
					 Text="{Binding RefreshIntervalSecs, Mode=TwoWay}"  Grid.Column="5" Grid.Row="2" />
			<TextBlock  HorizontalAlignment="Right"   Grid.Column="4" Margin="5"
				   Name="textBlock11" Text="Refresh time (sec.)" VerticalAlignment="Center" 
						Grid.Row="2" Grid.ColumnSpan="1" />

			<CheckBox Name="RequiresAuthCheckBox" Content="Requires Authentication" Grid.Column="1" Grid.Row="3"
					  IsChecked="{Binding RequiresAuth, Mode=TwoWay}"
				  HorizontalAlignment="Left" Margin="5,5,0,5" Grid.ColumnSpan="2" />
			<Grid Grid.Row="4" Grid.ColumnSpan="6" IsEnabled="{Binding ElementName=RequiresAuthCheckBox,Path=IsChecked}">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="*" />
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="*" />
				</Grid.RowDefinitions>
				<TextBox  HorizontalAlignment="Stretch" Margin="5" Name="UserNameTextBox" 
						  Text="{Binding SiteUserName, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
						  Grid.Column="1"  Grid.Row="0" Height="28" />
				<TextBlock Margin="121,5,5,5"
				   Name="textBlock3" Text="Username" VerticalAlignment="Center" Width="53" />

				<PasswordBox  HorizontalAlignment="Stretch" Margin="5" 
						  Controls:PasswordBoxAssistant.BindPassword="true"  
						  Controls:PasswordBoxAssistant.BoundPassword="{Binding Path=SitePassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
						  Name="PasswordTextBox" Grid.Column="1"  Grid.Row="1" Height="28" />
				<TextBlock  HorizontalAlignment="Right"  Margin="5" Grid.Row="1" 
				   Name="textBlock4" Text="Password" VerticalAlignment="Center" />

				<TextBox  HorizontalAlignment="Stretch" Margin="5" Name="UserNameElementNameTextBox" 
						  Text="{Binding UsernameElementName, Mode=TwoWay}"
						  Grid.Column="1"  Grid.Row="2" Height="28" />
				<TextBlock  HorizontalAlignment="Right"  Margin="5" Grid.Row="2" 
				   Name="textBlock5" Text="Username HTML Element Name" VerticalAlignment="Center" />

				<TextBox  HorizontalAlignment="Stretch" Margin="5" Name="PasswordElementNameTextBox" 
						  Text="{Binding PasswordElementName, Mode=TwoWay}"
						  Grid.Column="1"  Grid.Row="3" Height="28" />
				<TextBlock  HorizontalAlignment="Right"  Margin="5" Grid.Row="3" 
				   Name="textBlock6" Text="Password HTML Element Name" VerticalAlignment="Center" />
			</Grid>
		</Grid>
	</ScrollViewer>
	
</UserControl>
